﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.IM.Request
{
    /// <summary>
    /// 保存融云KS信息
    /// yun.im.rongcloud.setting.set
    /// </summary>
    public class SetRongCloudSettingRequest : ITopRequest<BoolResultResponse>
    {

        public string GetApiName()
        {
            return "yun.im.rongcloud.setting.set";
        }

        public string AppKeyTxt { get; set; }

        /// <summary>
        /// 密钥
        /// </summary>

        public string AppSecretTxt { get; set; }


        public void Validate()
        {
            RequestValidator.ValidateRequired("appkeytxt", AppKeyTxt);
            RequestValidator.ValidateRequired("appsecrettxt", AppSecretTxt);
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"appkeytxt", AppKeyTxt},
                {"appsecrettxt", AppSecretTxt}
            };

            return parameters;
        }


    }
}
